package com.ruoyi.quartz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quartz.mapper.SysEmailMapper;
import com.ruoyi.quartz.domain.SysEmail;
import com.ruoyi.quartz.service.ISysEmailService;
import com.ruoyi.common.core.text.Convert;

/**
 * 待删除邮箱记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-12-15
 */
@Service
public class SysEmailServiceImpl implements ISysEmailService 
{
    @Autowired
    private SysEmailMapper sysEmailMapper;

    /**
     * 查询待删除邮箱记录
     * 
     * @param emailId 待删除邮箱记录ID
     * @return 待删除邮箱记录
     */
    @Override
    public SysEmail selectSysEmailById(String emailId)
    {
        return sysEmailMapper.selectSysEmailById(emailId);
    }

    /**
     * 查询待删除邮箱记录列表
     * 
     * @param sysEmail 待删除邮箱记录
     * @return 待删除邮箱记录
     */
    @Override
    public List<SysEmail> selectSysEmailList(SysEmail sysEmail)
    {
        return sysEmailMapper.selectSysEmailList(sysEmail);
    }

    /**
     * 新增待删除邮箱记录
     * 
     * @param sysEmail 待删除邮箱记录
     * @return 结果
     */
    @Override
    public int insertSysEmail(SysEmail sysEmail)
    {
        return sysEmailMapper.insertSysEmail(sysEmail);
    }

    /**
     * 修改待删除邮箱记录
     * 
     * @param sysEmail 待删除邮箱记录
     * @return 结果
     */
    @Override
    public int updateSysEmail(SysEmail sysEmail)
    {
        return sysEmailMapper.updateSysEmail(sysEmail);
    }

    /**
     * 删除待删除邮箱记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSysEmailByIds(String ids)
    {
        return sysEmailMapper.deleteSysEmailByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除待删除邮箱记录信息
     * 
     * @param emailId 待删除邮箱记录ID
     * @return 结果
     */
    @Override
    public int deleteSysEmailById(String emailId)
    {
        return sysEmailMapper.deleteSysEmailById(emailId);
    }
}
